package com.kaifamiao.kfm.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class TreeMenuDTO implements Serializable {

    public TreeMenuDTO() {
    }

    public TreeMenuDTO(SysMenu menu) {
        this.sysMenu = menu;
    }

    private SysMenu sysMenu;

    public Long getMenuId(){
        return sysMenu.getMenuId();
    }

    public String getMenuName(){
        return sysMenu.getMenuName();
    }

    public Long getParentId(){
        return sysMenu.getParentId();
    }


    private List<SysMenu> children = new ArrayList<>();

}
